package com.woniu.shop.feign;


import com.woniu.entity.Result;
import com.woniu.shop.pojo.StoreService;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "shop-service", path = "/store-service",contextId = "storeServiceFeign")
public interface StoreServiceFeignClient {

    @ApiOperation("根据服务id获取服务")
    @GetMapping("/getService/{id}")
    public StoreService getService(@PathVariable("id") String id);
}
